package com.oo.polymorphic_4.task;

/**
 * CodeJob--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-10 10:53
 **/
public class CodeJob extends Job{

    private int line;

    private int bugNum;

    public CodeJob(String name, String type, int line, int bugNum) {
        super(name, type);
        this.line = line;
        this.bugNum = bugNum;
    }

    @Override
    protected void intro() {
        System.out.println("工作名称："+this.getName()
        +"\n工作类型："+this.getType()
        +"\n有效编码行数："+this.getLine()
        +"\n遗留问题："+this.getBugNum());
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }

    public int getBugNum() {
        return bugNum;
    }

    public void setBugNum(int bugNum) {
        this.bugNum = bugNum;
    }
}
